import request from "/@/utils/request"
// 查询考试监考
export function getOnlineUser(query?: Object) {
    return request({
        url: '/train/ksglOnlineStatus/getOnlineUser',
        method: 'get',
        params: query
    })
}
// 在线状态统计
export function getCountStatus(query?: Object) {
    return request({
        url: '/train/ksglOnlineStatus/getCountStatus',
        method: 'get',
        params: query
    })
}
// 考试中的个人行为记录查询
export function getRecords(query?: Object) {
    return request({
        url: '/train/ksglExceptionInfo/getRecords',
        method: 'get',
        params: query
    })
}
// 取消考试资格
export function closeBatchUser(query?: Object) {
    return request({
        url: '/train/ksglOnlineStatus/closeBatchUser',
        method: 'get',
        params: query
    })
}
// 取消本场考试
export function cancelExam(query?: Object) {
    return request({
        url: '/train/ksglOnlineStatus/cancelExam',
        method: 'get',
        params: query
    })
}
//发送警告
export function sendWarn(query?: Object) {
    return request({
        url: '/train/ksglExceptionInfo/sendWarn',
        method: 'get',
        params: query
    })
}
//获取员工照片基础地址
export function personPic(query?: Object) {
    return request({
        url: 'admin/param/publicValue/PERSON_PIC',
        method: 'get',
        params: query
    })
}
//获取员工图片
export function getPic(query?: string) {
    return request({
        url:  query,
        method: 'get',
        responseType: "blob"
    })
}